package com.zz.inventory.feign;

import org.example.dto.StudentInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        url = "http://localhost:8088",  // student服务的实际地址
        name = "student",
         fallbackFactory = StudentFallbackFactory.class,
        configuration = FeignDirectCallConfig.class  // 自定义配置
)
public interface StudentFeignClient {
    @PostMapping("/api/inst")
    StudentInfoDTO getStudentInfo(@RequestBody StudentInfoDTO studentInfoDTo);
}
